Skip to content

Instantly share code, notes, and snippets.

@HarryAnkers
HarryAnkers / GUIDE.md
Last active September 13, 2026 08:36
NVIDIA Virtual Display for Sunshine/Moonlight on Linux — No Dummy Plug Required (4K@120Hz, HDR, Custom Resolutions)

NVIDIA Virtual Display for Sunshine/Moonlight on Linux — No Dummy Plug Required

A guide for creating a virtual display on an NVIDIA GPU (tested on RTX 5080, driver 595.58) with HDR, custom resolutions, and 4K@120Hz support for headless Sunshine/Moonlight streaming on Linux.

Works on both HDMI and DisplayPort connectors with no physical display or dummy plug connected.

The Problem

Running Sunshine headless on Linux with NVIDIA is painful:

@Jekins
Jekins / Markdown-docs.md
Last active September 13, 2026 08:30
Руководство по оформлению Markdown файлов

Руководство по оформлению Markdown файлов

Markdown - это облегчённый язык разметки, который преобразует текст в структурированный HTML. Следующее руководство поможет вам разобраться, как использовать Markdown.

Заголовки

# Заголовок первого уровня
## Заголовок второго уровня
### Заголовок третьего уровня
#### Заголовок четвёртого уровня
##### Заголовок пятого уровня

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@smnatale
smnatale / keybindings.json
Created July 1, 2026 21:06
vscode vim setup
// Place your key bindings in this file to override the defaults
[
// terminal toggle
{
"key": "f12",
"command": "workbench.action.terminal.toggleTerminal",
},
// terminal navigation
{
"key": "ctrl+1",
@tanaikech
tanaikech / submit.md
Last active September 13, 2026 08:26
Downloading Files From Google Drive Under No Authorization Using Browser

Downloading Files From Google Drive Under No Authorization Using Browser

This is a sample script for downloading files from Google Drive under no authorization using browser. By using this sample, you can make other users download files from your Google Drive. Even if the other users are not Google users, they can download the files.

Demo

@ldong
ldong / file_magic_numbers.md
Created December 20, 2015 08:25 — forked from leommoore/file_magic_numbers.md
File Magic Numbers

#File Magic Numbers

Magic numbers are the first bits of a file which uniquely identify the type of file. This makes programming easier because complicated file structures need not be searched in order to identify the file type.

For example, a jpeg file starts with ffd8 ffe0 0010 4a46 4946 0001 0101 0047 ......JFIF.....G ffd8 shows that it's a JPEG file, and ffe0 identify a JFIF type structure. There is an ascii encoding of "JFIF" which comes after a length code, but that is not necessary in order to identify the file. The first 4 bytes do that uniquely.

This gives an ongoing list of file-type magic numbers.

##Image Files

@TG9541
TG9541 / an_STM8L_low_power_console.md
Last active September 13, 2026 08:18
STM8L051F3: low-power Forth console experiments

STM8L051F3: a low power Forth console

In the stopped state the STM8L needs just a few µA - but in this state the console can't wake up the device: the USART gets no clock. Only GPIO interrupts and peripherals that are clocked from the LSI or the LSE will work! A possible solution is a pin-change interrupt on RxD for waking the core - and the USART - up. In "Active-Halt" mode RTC and WUT peripherals run on 38kHz LSI or 32.768kHz LSE clock (see here). This means that it's possible to have a background task without keeping the core busy.

One of the challenges ist that STM8L docs doesn't describe the USART behavior if the clock is turned on after the start-bit edge, i.e., if the character that wakes the core from "Active-Halt" can still be received.

A pin change interrupt

@mrroot5
mrroot5 / terminator-cheatsheet.md
Created March 4, 2020 11:54
Terminator cheatsheet

Terminator Cheat Sheet

Split, resize, rotate, rename, move... all you need is terminator.

Splitting windows

Command Action
Ctrl+Shift+O/E horizontal / vertical split
Ctrl+Shift+W close the view where the focus is on
@sundowndev
sundowndev / GoogleDorking.md
Last active September 13, 2026 08:09
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"